package com.lx.config;

import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;

/**
 * 解决springboot2.0不能正常引用js，css文件bug
 *
 * @author 段誉
 * @create 2019-05-20 13:44
 */
//@Configuration
public class WebMvcConfig{// implements WebMvcConfigurer {
//  @Override
  public void addResourceHandlers(ResourceHandlerRegistry registry) {
   registry.addResourceHandler("/static/**")
   .addResourceLocations("classpath:/static/");
  }
}
